package com.caltco.cargo.ops.modules.sys.dao;

import com.caltco.cargo.ops.modules.sys.entity.DailyTask;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;

@Mapper
public interface DailyTaskDao extends MPJBaseMapper<DailyTask> {
    Integer countCompletedDaysInMonth(@Param("userId") Long userId, @Param("startDate") Date startDate, @Param("endDate") Date endDate);

    List<Date> selectQualifiedDatesInMonth(@Param("userId") Long userId, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
}
